//
//  CarTypePriceTopView.m
//  AutoHome
//
//  Created by wqh on 15-5-14.
//  Copyright (c) 2015年 Wqh. All rights reserved.
//

#import "CarTypePriceTopView.h"

@implementation CarTypePriceTopView


- (void)awakeFromNib {
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showDataWithDict:) name:@"updateUI" object:nil];
}


- (void)showDataWithDict:(NSDictionary *)dict {
    [self.topImgView sd_setImageWithURL:[NSURL URLWithString:dict[@"logo"]] placeholderImage:[UIImage imageNamed:@"black_default_640_320"]];
    
    NSArray *array = dict[@"paramlist"];
    NSString *str1 = array[1][@"value"];
    NSString *str2 = array[2][@"value"];
    self.leftLabel.text = [NSString stringWithFormat:@"%@/%@",str1,str2];
    self.rightLabel.text = [NSString stringWithFormat:@"共%@张图",dict[@"piccount"]];
    
}

@end
